#pragma once

#include "NetworkManager.h"
#include "Connection.h"

namespace Networking
{
    class Client : public NetworkManager
    {
        Q_OBJECT
    public:
        Client(const QString& address = "localhost", quint16 port = 7777);
    public slots:
        void SlotDisconnect();
        void SlotProcessMessage(const QString&);
    signals:
    private:
        ConnectionPtr connectToServer(const QString& address, quint16 port);

        ConnectionPtr m_conn;
    };
}
